package com.ruoyi.ui.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 地址对象 ui_area
 * 
 * @author ruoyi
 * @date 2022-09-07
 */
public class UiArea implements Serializable
{
    private static final long serialVersionUID = -6013320537436191451L;

    /** 地区id */
    private Long areaId;

    /** 地名 */
    @Excel(name = "地名")
    private String areaName;

    /** 地区上级id */
    @Excel(name = "地区上级id")
    private Long parentId;

    /** 地区层级 */
    @Excel(name = "地区层级")
    private int level;

    //子集
    private List<UiArea> uiareas;

    public List<UiArea> getUiAreas() {
        return uiareas;
    }

    public void setAreas(List<UiArea> uiareas) {
        this.uiareas = uiareas;
    }

    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("areaId", getAreaId())
            .append("areaName", getAreaName())
            .append("parentId", getParentId())
            .append("level", getLevel())
                .append("uiareas", getUiAreas())
            .toString();
    }
}
